﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _3接口
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Button1_Click(object sender, EventArgs e)
        {
            MachineCat mcat = new MachineCat("叮当猫");
            StoneMonkey wukong = new StoneMonkey("孙悟空");
            dded dde = new dded();          
            IParameter af=null;
            dde.zheoagei(af);
            List<IChange> arr = new List<IChange>();
            IChange ddesdf = mcat;
           
            arr.Add(mcat);
            arr.Add(wukong);
            arr.Add(dde);
            MessageBox.Show(ddesdf.ChangeThing("ddefdedr"));
            MessageBox.Show(arr[0].ChangeThing("各种各样的东西"));
            MessageBox.Show(arr[1].ChangeThing("各种各样的东西"));
        }
    }
}
